package itsense.model;

import java.util.Date;

import com.google.gwt.user.client.rpc.IsSerializable;

public class ClientDTO implements IsSerializable{
	private Long id;
	private String email;
	private String firstName;
	private String lastName;
	private Date birthDate;
	private Date annivarsery;
	private String mobilePhone;
	private String workPhone;
	private String homePhone;
	private String country;
	private String city;
	private String addressLine1;
	private String addressLine2;
	private String postCode;
	private String gender;
	private String occupation;
	private boolean doNotMail;
	private boolean doNotCall;
	private boolean doNotSendSMS;

	private String primaryPhoneNumber;
	private String title;

	
	public boolean isDoNotSendSMS() {
		return doNotSendSMS;
	}
	public void setDoNotSendSMS(boolean doNotSendSMS) {
		this.doNotSendSMS = doNotSendSMS;
	}
	
	public void setAnnivarsery(Date annivarsery) {
		this.annivarsery = annivarsery;
	}
	
	public Date getAnnivarsery() {
		return annivarsery;
	}
	
	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getOccupation() {
		return occupation;
	}

	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}

	public boolean isDoNotMail() {
		return doNotMail;
	}

	public void setDoNotMail(boolean doNotMail) {
		this.doNotMail = doNotMail;
	}

	public boolean isDoNotCall() {
		return doNotCall;
	}

	public void setDoNotCall(boolean doNotCall) {
		this.doNotCall = doNotCall;
	}

	public String getPrimaryPhoneNumber() {
		return primaryPhoneNumber;
	}

	public void setPrimaryPhoneNumber(String primaryPhoneNumber) {
		this.primaryPhoneNumber = primaryPhoneNumber;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public Date getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public String getWorkPhone() {
		return workPhone;
	}

	public void setWorkPhone(String workPhone) {
		this.workPhone = workPhone;
	}

	public String getHomePhone() {
		return homePhone;
	}

	public void setHomePhone(String homePhone) {
		this.homePhone = homePhone;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	

	public String getPostCode() {
		return postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	public ClientDTO(){
		
	}
	
	public String getAddressLine1() {
		return addressLine1;
	}
	public String getAddressLine2() {
		return addressLine2;
	} 
	public void setAddressLine1(String addressLine1) {
		this.addressLine1 = addressLine1;
	}
	public void setAddressLine2(String addressLine2) {
		this.addressLine2 = addressLine2;
	}
	
	public ClientDTO(Client client){
		birthDate = client.getBirthDate();
		city = client.getCity();
		country = client.getCountry();
		email = client.getEmail();
		firstName = client.getFirstName();
		addressLine1 = client.getAddressLine1();
		addressLine2 = client.getAddressLine2();
		homePhone = client.getHomePhone();
		id = client.getId();
		lastName = client.getLastName();
		mobilePhone = client.getMobilePhone();
		postCode = client.getPostCode();
		workPhone = client.getWorkPhone();
	}
}
